package com.study.zkyxgs1.model;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.List;
import java.util.Map;

/**
 * @author weixiaochun
 * @date 2022/6/14 20:37
 */
@Document("user")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class User {

    /**
     * 人员id
     */
    @Id
    @ApiModelProperty("人员id")
    private String id;

    /**
     * 姓名
     */
    @ApiModelProperty("姓名")
    private String name;

    /**
     * 年龄
     */
    @ApiModelProperty("年龄")
    private Integer age;

    /**
     * 住址
     */
    @ApiModelProperty("住址")
    private String address;

    /**
     * 爱好
     */
    @ApiModelProperty("爱好")
    private List<String> hobby;

    /**
     * 描述信息
     */
    @ApiModelProperty("描述信息")
    private Map<String, Object>  description;
}
